home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Programmation / Gooey1.3.1 / C++ Templates / InitExit.c < prev    next >
Text File  |  1995-02-06  |  4KB  |  137 lines

  1. $$Message User InitExit, u:InitExit$Prototype.name$.cp
  2. $$File u:InitExit$Prototype.name$.cp
  3. /*  $CopyRight$ */
  4. /*   InitExit$Prototype.name$                    Program Init and Exit routines 
  5.  
  6.     File name:  InitExit$Prototype.name$.c  
  7.     Function:  This module contains the extra program initialization
  8.      routine as well as the program exit and cleanup routine.
  9.     History: $Date$ Original by $Author$
  10.  
  11.    */
  12.  
  13. #include "mmCommon$Prototype.name$.h"    /* Common */
  14. #include "Common$Prototype.name$.h"        /* Common */
  15.  
  16. /* ======================================================= */
  17. /* ======================================================= */
  18.  
  19. /* Routine: AE_OpenedApplication */
  20. /* Purpose: Called one time, when this program is opened. */
  21.  
  22. OSErr AE_OpenedApplication(AppleEvent *message,AppleEvent *reply,long refcon)
  23. {
  24.  
  25. return(noErr);
  26. }
  27.  
  28. /* ======================================================= */
  29.  
  30. /* Routine: AE_QuittingApplication */
  31. /* Purpose: Called one time, when this program is quit. */
  32.  
  33. OSErr AE_QuittingApplication(AppleEvent *message,AppleEvent *reply,long refcon)
  34. {
  35.  
  36. return(noErr);
  37. }
  38.  
  39. /* ======================================================= */
  40.  
  41. /* Routine: InitExtras */
  42. /* Purpose: Extra program initialization */
  43.  
  44. void CApplication::InitExtras()                            /* Initialize the application */
  45. {
  46. inherited::InitExtras();
  47. }
  48.  
  49. /* ======================================================= */
  50.  
  51. /* Routine: ExitExtras */
  52. /* Purpose: Extra program cleanup upon exit from our program */
  53. /* This is where left over buffers are released and any open files are closed */
  54.  
  55. void CApplication::ExitExtras()                            /* Exit the application */
  56. {
  57. inherited::ExitExtras();
  58. }
  59.  
  60. /* ======================================================= */
  61.  
  62. /* Routine: AE_OpenThisFile */
  63. /* Purpose: Called with files to be opened. Called both at program */
  64. /* startup and during running. */
  65.  
  66. void AE_OpenThisFile(FSSpec *theFSSpec,short WhichFile,short TotalToOpen)
  67. {
  68.  
  69. }
  70.  
  71. /* ======================================================= */
  72.  
  73. /* Routine: AE_PrintThisFile */
  74. /* Purpose: Called with files to be printed. Called both at program */
  75. /* startup and during running. */
  76.  
  77. void AE_PrintThisFile(FSSpec *theFSSpec,short WhichFile,short TotalToOpen)
  78. {
  79.  
  80. }
  81.  
  82. $$if Option.EXTRAHOOKS
  83. /* ======================================================= */
  84.  
  85. /* Routine: TopOfLoop */
  86. /* Purpose: HOOK at top of main event loop */
  87.  
  88. void CApplication::TopOfLoop()
  89. {
  90. inherited::TopOfLoop();
  91. }
  92.  
  93. /* ======================================================= */
  94.  
  95. /* Routine: FilterEvent */
  96. /* Purpose: HOOK, Allow user to filter all events before the main loop handles them */
  97. /* Set  DoIt  to TRUE to let the main loop handle the event. */
  98.  
  99. void CApplication::FilterEvent(Boolean *DoIt, EventRecord *myEvent)
  100. {
  101.  
  102. inherited::FilterEvent(DoIt,myEvent);
  103.  
  104. }
  105.  
  106. /* ======================================================= */
  107.  
  108. void CApplication::Handle_Extra_User_Event(UserEventPRec theUserEvent)    /* Hook, to handle user events */
  109. {
  110. inherited::Handle_Extra_User_Event(theUserEvent);
  111. }
  112.  
  113. /* ======================================================= */
  114.  
  115. /* Routine: OpenSplashWindow */
  116. /* Purpose: Open spash or personalization window */
  117.  
  118. void CApplication::OpenSplashWindow()
  119. {
  120. inherited::OpenSplashWindow();
  121. }
  122.  
  123. /* ======================================================= */
  124.  
  125. /* Routine: CloseSplashWindow */
  126. /* Purpose: Close spash or personalization window */
  127.  
  128. void CApplication::CloseSplashWindow()
  129. {
  130. inherited::CloseSplashWindow();
  131. }
  132.  
  133. $$endif Option.EXTRAHOOKS
  134. /* ======================================================= */
  135. /* ======================================================= */
  136. $$CloseFile
  137.